const fs = require("fs");

// 读取文件内容的操作属于异步任务
fs.readFile("./01-dom.html", "utf-8", (err, data) => {
  console.log(data);
  fs.readFile("./03-js异步.html", "utf-8", (err, data) => {
    console.log(data);
    fs.readFile("./03-js异步.html", "utf-8", (err, data) => {
      console.log(data);
      fs.readFile("./03-js异步.html", "utf-8", (err, data) => {
        console.log(data);
      })
    })
  })
})

